package io.renren.modules.banner.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by dell on 2021/8/11.
 */
@Data
@TableName("tb_banner")
public class BannerEntity implements Serializable {
  private static final long serialVersionUID = 1L;

  @TableId
  private Long bannerId;

  @NotBlank(message="名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
  private String name;

  @NotBlank(message="地址不能为空", groups = {AddGroup.class, UpdateGroup.class})
  private String url;

  @NotBlank(message="颜色不能为空", groups = {AddGroup.class, UpdateGroup.class})
  private String color;

  @NotBlank(message="类型不能为空", groups = {AddGroup.class, UpdateGroup.class})
  private String type;

  private Date createTime;

  private Date updateTime;

}
